package com.ruoyi.module.domain;

import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户自定义词典对象 user_custom_dict
 * 
 * @author ruoyi
 */
public class UserCustomDict extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    @Excel(name = "词典ID")
    private String id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 词典名称 */
    @Excel(name = "词典名称")
    private String name;

    /** 描述 */
    @Excel(name = "描述")
    private String description;

    /** 分类 */
    @Excel(name = "分类")
    private String category;

    /** 标签（逗号分隔） */
    @Excel(name = "标签")
    private String tags;

    /** 语言 */
    @Excel(name = "语言")
    private String language;

    /** 语言分类 */
    @Excel(name = "语言分类")
    private String languageCategory;

    /** 单词数量 */
    @Excel(name = "单词数量")
    private Integer length;

    /** 是否公开（0否1是） */
    @Excel(name = "是否公开", readConverterExp = "0=否,1=是")
    private Integer isPublic;

    /** 单词列表（仅用于返回数据） */
    private List<UserCustomDictWord> words;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setCategory(String category) 
    {
        this.category = category;
    }

    public String getCategory() 
    {
        return category;
    }

    public void setTags(String tags) 
    {
        this.tags = tags;
    }

    public String getTags() 
    {
        return tags;
    }

    public void setLanguage(String language) 
    {
        this.language = language;
    }

    public String getLanguage() 
    {
        return language;
    }

    public void setLanguageCategory(String languageCategory) 
    {
        this.languageCategory = languageCategory;
    }

    public String getLanguageCategory() 
    {
        return languageCategory;
    }

    public void setLength(Integer length) 
    {
        this.length = length;
    }

    public Integer getLength() 
    {
        return length;
    }

    public void setIsPublic(Integer isPublic) 
    {
        this.isPublic = isPublic;
    }

    public Integer getIsPublic() 
    {
        return isPublic;
    }

    public void setWords(List<UserCustomDictWord> words) 
    {
        this.words = words;
    }

    public List<UserCustomDictWord> getWords() 
    {
        return words;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("name", getName())
            .append("description", getDescription())
            .append("category", getCategory())
            .append("tags", getTags())
            .append("language", getLanguage())
            .append("languageCategory", getLanguageCategory())
            .append("length", getLength())
            .append("isPublic", getIsPublic())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}

